package com.itheima.day04_array;

public class Demo11_Test1 {
    public static void main(String[] args) {
        int[] faceScores = {15, 22, 56, 33, 23, 54, 66};
        int max = faceScores[0];

        for (int i = 1; i < faceScores.length; i++) {
            if (faceScores[i] > max){
                max = faceScores[i];
            }
        }
        System.out.println("max = " + max);
    }
}
